module.exports = {
  "plugins": {
    "postcss-import": {},
    "postcss-url": {},
    "postcss-aspect-ratio-mini": {},  //  处理元素容器宽高比
    "postcss-write-svg": {     // 处理移动端1px
      "utf8": false
    },
    "postcss-preset-env": {},     // 可以使用 css 未来的特性 // postcss-cssnext 已弃用
    "postcss-px-to-viewport": {  // px to vw
      "viewportWidth": 750,      // viewport width
      "viewportHeight": 1334,    // viewport height
      "unitPrecision": 3,        // (Number) The decimal numbers to allow the REM units to grow to.
      "viewportUnit": 'vw',      // (String) Expected units.
      "selectorBlackList": [".ignore", ".hairlines"], // (Array) The selectors to ignore and leave as px.
      "minPixelValue": 1,        // (Number) Set the minimum pixel value to replace.
      "mediaQuery": false        // (Boolean) Allow px to be converted in media queries.
    },
    "cssnano": {               // 压缩和清理 css
      "preset": "advanced",
      "autoprefixer": false,   // postcss-next 已经有了 autoprefixer, 因此 false 且删掉默认的 autoprefixer
      "postcss-zindex": false
    }
  }
}